package com.demo.sys.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ToString
public class User implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	private String name;

	private String loginname;

	private String address;

	private Integer sex;

	private String remark;

	private String pwd;

	private Integer deptid;

	private Date hiredate;

	private Integer mgr;

	private Integer available;

	private Integer ordernum;

	//用户类型;0:超级管理员,1:管理员,2:普通用户
	private Integer type;


	private String salt;

	//领导名称
	@TableField(exist = false)
	private String leadername;
	// 部门名称
	@TableField(exist = false)
	private String deptname;

}
